package android.meetingatsb.widget

import android.app.Fragment
import android.meetingatsb.R
import android.os.Bundle
import android.support.annotation.Nullable
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup

/**
 * Created by ZS on 2017/12/19.
 */
class DatingMessageFragment: Fragment() {
    private val ARG_PAGE: String? = "ARG_PAGE"
    var mPage: Int? = null

    companion object {
        fun newInstance(page: Int): DatingMessageFragment {
            val args = Bundle()
            args.putInt("ARG_PAGE", page)
            val pageFragment = DatingMessageFragment()
            pageFragment.arguments = args
            return pageFragment
        }
    }
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mPage = arguments?.getInt(ARG_PAGE)
    }

    @Nullable
    override fun onCreateView(inflater: LayoutInflater?, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        return inflater!!.inflate(R.layout.fragment_dating_meaasges, container, false)
    }
}